import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        ind: 1
    },
    // 赋值
    mutations: {

        num(state, int) {
            // console.log(int)
            state.ind = int
        },
    },
    // 取值
    getters: {
        getStateData(state) {
            return state.ind
        }
    },
})

export default store